package com.example.service.usr;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.context.PageResult;
import com.example.entity.UserAddressDO;
import com.example.vo.addr.AddrResp;
import com.example.vo.addr.UserAddressPageReq;
import com.example.vo.addr.UserAddressReq;

public interface UserAddressService extends IService<UserAddressDO> {
    PageResult<AddrResp> getAddressList(UserAddressPageReq req);

    void addAddress(UserAddressReq req);

    void updateAddress(UserAddressReq req);

    void deleteAddress(Long id);

    void setDefault(Long id);

    UserAddressDO getAddressById(Long addressId);

    AddrResp getDefaultAddress();
}
